package com.wut.retrofit.controller;

import com.wut.core.common.vo.BaseResponse;
import com.wut.core.controller.BaseController;
import com.wut.retrofit.service.RetrofitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/retrofit")
@Api(tags = "Retrofit模块")
public class RetrofitController extends BaseController {

    private final RetrofitService retrofitService;

    @GetMapping
    @ApiOperation(value = "获取全部bucket")
    public BaseResponse getBuckets() {
        return retrofitService.getBuckets();
    }
}
